<div class="page-middle page-middle-padding">
    <h2 class="menu_select"><?php echo __('Sample Articles')?></h2>
    <ol class="lst_faq">
    <?php   
        foreach($articles as $article){
            echo '
                <li>
                    <dl>
                        <dt>+ ' . $article['Article']['title'] . '</dt>
                        <dd>        
                            <div>
                                    ' . @$article['Article']['summary'] . '                                                                    
                            </div>
                            <div class="view-sample">' .
                                (isset($article['Media'][0]['id'])?
                                $this->Html->link(__('View Sample'), array('controller' => 'media', 'action' => 'viewFile', @$article['Media'][0]['id'], 'admin' => true))
                                : $this->Html->link(__('View Sample'), array('controller' => 'articles', 'action' => 'sample#', '', 'admin' => false)))
                            . '</div>
                        </dd>
                    </dl>
                </li>
            ';
        }
     ?>
     </ul>
    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>